package com.jd.dlc.limit;

import com.jd.dlc.domain.LimiterRule;

/**
 * @ClassName: Limiter
 * @Description:
 * @Author: MengXiangXin
 * @Date: 2022/5/10 10:11 AM
 */
public interface Limiter {

    String PREFIX_LIMIT = "dlc_limit_";

    boolean isAllowed(String limitKey, long timeout, long limit);

    boolean refreshLimiter(LimiterRule limiterRule);


}
